package com.upcode.weighing.vo.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 检测点检测统计信息
 */
@Data
@ApiModel(value="", description="检测点检测统计结果")
public class DetectPointDetectStats {
    @ApiModelProperty(value = "检测点id")
    private String detectPointId;
    @ApiModelProperty(value = "检测点名称")
    private String detectPointName;
    @ApiModelProperty(value = "超限标志,用以进行统计数据区分")
    private Short overFlag;
    @ApiModelProperty(value = "查询数量")
    private Long num;
    @ApiModelProperty(value = "检测数量")
    private Long detectNum;
    @ApiModelProperty(value = "超限数量")
    private Long overNum;
    /**
     * 当前使用位置
     */
    @ApiModelProperty("当前使用位置")
    private String location;
    /**
     * 检测点名称
     */
    @ApiModelProperty("检测点纬度")
    private BigDecimal lat;
    /**
     * 检测点编号
     */
    @ApiModelProperty("检测点经度")
    private BigDecimal lng;
    /**
     * 当前状态(0离线1在线)
     */
    @ApiModelProperty("当前状态(0离线1在线)")
    private Integer status;
    /**
     * 当前执法单位
     */
    @ApiModelProperty("当前执法单位")
    private String detectDept;

    @ApiModelProperty(value = "超限率")
    private float overRatio;

    @ApiModelProperty(value = "当前在线时长(单位s)")
    private int onlineDuration;

    @ApiModelProperty(value = "当前在线时长字符串,转换为n小时n分n秒")
    private String onlineDurationStr;

    @ApiModelProperty(value = "最后一次离线时间")
    private LocalDateTime lastOfflineTime;

}
